package com.xiao.springaopdemo1.annnotation;


import org.springframework.stereotype.Component;

@Component
public class CalculatorOneImpl implements CalculatorOne {

    @Override
    public int add(int i,int j) {
        int result=i+j;
        System.out.println(result);
        return result;
    }

    @Override
    public int div(int i, int j) {
        int result=i/j;
        System.out.println(result);
        return result;
    }
}
